package com.manor.main.adapter;

import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.manor.main.R;
import com.manor.main.custom.flow.FlowLayout;
import com.manor.main.custom.flow.TagAdapter;

import java.util.List;

/**
 * @version 1.0
  
 * @date 2020/6/18  14:04
 */
public class MHobbyAdapter extends TagAdapter<String> {
    private List<String> mList;

    public MHobbyAdapter(List<String> datas) {
        super(datas);
        this.mList = datas;
    }

    @Override
    public View getView(FlowLayout parent, int position, String s) {
        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_tag_x, parent, false);
        TextView textView = view.findViewById(R.id.tv_text);
        textView.setText(mList.get(position));
        //bl_solid_color
        //CustomizedUtil.instance.setSolid(textView,parent.getContext());
        return view;
    }

}
